﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AC_ActivityDtls.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.AC_ActivityDtls" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<%@ Register TagPrefix="custom" Namespace="KPIS.Customs.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>รายละเอียดเพิ่มเติมกิจกรรม</title>    
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
    <style type="text/css"></style>
</head>  
     <script type="text/javascript">
         <!-- -->
         function onTextChange(sender) {
             if (sender.get_value() == "")
             { sender.set_text(""); }
         }
         function openHistory(id) {
             radopen("AC_ActivityHistory.aspx?Sequence=" + id, "RadWindow1");
         }
         ////
         ////
    </script>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="cmdPopUpper">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grdUpper" />                                     
                    <telerik:AjaxUpdatedControl ControlID="txtMessageToUpper" />                                                                                             
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow 
            id="RadWindow1"             
            runat="server"
            showcontentduringload="false"
            VisibleStatusbar="false"
            title="ประวัติการไปปฏิบัติราชการชั่วคราวในต่างประเทศ"
            width="980px"
            Height="460px"        
            Modal="true"
            Skin = "Vista"
            behaviors="Close">
        </telerik:RadWindow>
    </Windows>
    </telerik:RadWindowManager>
 
<asp:Panel ID="PanelA" runat="server">
    <asp:Label ID="lblID" runat="server" Visible="False"></asp:Label>
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" 
        MultiPageID="RadMultiPage1" SelectedIndex="0" 
        CausesValidation="False" Width="980px" Skin="Web20" 
        ontabclick="RadTabStrip1_TabClick">
        <Tabs>
            <telerik:RadTab Text="ข้อมูลหลัก" Width="200px" Selected="True">
            </telerik:RadTab>
            <telerik:RadTab Text="แจ้งเวียน" Width="200px">
            </telerik:RadTab>
            <telerik:RadTab Text="รายชื่อผู้สมัคร/ผู้มีสิทธิ์" Width="200px">
            </telerik:RadTab>
            <telerik:RadTab Text="รายชื่อผู้มีสิทธิ์" Width="200px" Visible = "false">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
<telerik:RadPageView ID="RadPageView4" runat="server"> 
    <asp:Panel ID="Panel5" runat="server">
            <table width="1000">
              <tr>
              <td colspan="3">
                <div class="moduleDivSlim1000x450">
                <div class="moduleDivBottom1000">
                    <table align="center" width="980px">
                    <tr>
                        <td align="left" class="tableHeader">
                            ข้อมูลหลัก
                        </td>
                    </tr>
                    </table>        
                    <table align="center" style="width: 962px">
                        <tr>
                            <td>                             
                                <asp:Panel ID="Panel7" runat="server" Height="380px" ScrollBars="Auto" 
                                    Visible="true" Width="969px">
                                    <ul class="formList890px">
                                    <li>
                                        <table align="left" width="900px"> 
                                            <tr>
                                               <td align="right" style="width:35%">
                                                    กิจกรรม :
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbActDescr" runat="server" ForeColor="Blue"></asp:Label>
                                                </td>
                                            </tr> 
                                        </table>
                                    </li>
                                    <li>
                                        <table align="left" width="900px"> 
                                            <tr>
                                               <td align="right" style="width:35%">
                                                    สถานที่จัด :
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbLocation" runat="server" ForeColor="Blue"></asp:Label>
                                                </td>
                                            </tr> 
                                        </table>
                                    </li>
                                    <li>
                                        <table align="left" width="900px"> 
                                            <tr>
                                               <td align="right" style="width:35%">
                                                    เมือง :
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbcity" runat="server" ForeColor="Blue"></asp:Label>
                                                </td>
                                            </tr> 
                                        </table>
                                    </li>
                                    <li>
                                        <table align="left" width="900px"> 
                                            <tr>
                                               <td align="right" style="width:35%">
                                                    ประเทศ :
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbCountry" runat="server" ForeColor="Blue"></asp:Label>
                                                </td>
                                            </tr> 
                                        </table>
                                    </li>
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                   หน่วยงานที่รับผิดชอบ :
                                                </td>
                                                <td>
                                                    <asp:Label ID="lbSchedule" runat="server" ForeColor="Blue"></asp:Label>
                                                </td>
                                           </tr>
                                        </table>
                                    </li>
                                    <li>
                                    <table align="left" width="900px">
                                    <tr>
                                       <td align="right" style="width:35%">
                                            งานมีระหว่างวันที่ :
                                        </td>
                                        
                                        <td >
                                            <asp:Label ID="lbDateActStard" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                            
                                        <td align="right" >
                                            ถึงวันที่ :
                                        </td> 
                                        <td align="left">
                                            <asp:Label ID="lbDateActEnd" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                    </tr>
                                    </table>
                                    </li>  
                                    <li>
                                    <table align="left" width="900px">
                                    <tr>
                                       <td align="right" style="width:35%">
                                            เดินทางระหว่างวันที่ :
                                        </td>
                                        
                                        <td >
                                            <asp:Label ID="lblAppDateStart" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                            
                                        <td align="right" >
                                            ถึงวันที่ :
                                        </td> 
                                        <td align="left">
                                            <asp:Label ID="lblAppDateEnd" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                    </tr>
                                    </table>
                                    </li>                                                
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                            จำนวนเจ้าหน้าที่เดินทาง :
                                            </td>                                        
                                        <td>
                                            <asp:Label ID="lbActLimit" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;คน</td>
                                        </tr>
                                        </table>
                                    </li>                                    
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                จำนวนผู้เข้าร่วมงาน(บริษัท) :
                                            </td>
                                            <td>
                                                <asp:Label ID="lblAttendCount" runat="server" ForeColor="Blue"></asp:Label>
                                            </td>
                                        </tr>
                                            
                                        </table>
                                    </li>  
                                    <li>
                                    <table align="left" width="900px">
                                    <tr>
                                       <td align="right" style="width:35%">
                                            เปิดรับสมัครระหว่างวันที่ :
                                        </td>                                        
                                        <td >
                                            <asp:Label ID="lbDateSignStard" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                            
                                        <td align="right" >
                                            ถึงวันที่ :
                                        </td> 
                                        <td align="left">
                                            <asp:Label ID="lbDateSignEnd" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                    </tr>
                                    </table>
                                    </li>             
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                หมายเหตุเพิ่มเติม :
                                            </td>
                                            
                                            <td>
                                                <asp:Label ID="lbRemark" runat="server" ForeColor="Blue"></asp:Label>
                                            </td>
                                        </tr>
                                        </table>
                                    </li> 
                                    </ul> 
                                 </asp:Panel>
                            </td>    
                        </tr>            
                   </table>
                </div>
                </div>            
              </td>                                             
              </tr>         
             </table>
          </asp:Panel>
</telerik:RadPageView> 
<telerik:RadPageView ID="RadPageView5" runat="server"> 
    <asp:Panel ID="Panel3" runat="server" Visible="true">
        <table cellpadding="0" cellspacing="0" width="980px">
          <tr>
          <td>
            <div class="moduleDivSlim1000x450">
            <div class="moduleDivBottom1000">             
            <table>
            <tr>
            <td width = "300px">
                <asp:RadioButtonList ID="rblInstitution" 
                    runat="server" AutoPostBack = "true"
                    onselectedindexchanged="rblInstitution_SelectedIndexChanged" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Value="1" Selected = "True">แจ้งเวียนรายบุคคล</asp:ListItem>
                    <asp:ListItem Value="2">แจ้งเวียนหน่วยงาน</asp:ListItem>
                </asp:RadioButtonList>                
            </td>
            <td>
                ประเภทบุคลากร :
            </td>
            <td>
                <telerik:RadComboBox ID="cmbEmployeeType" runat="server" 
                    AllowCustomText="true" 
                    AutoPostBack = "true"
                    CausesValidation="false" 
                    DataTextField="Name" 
                    DataValueField="Sequence" 
                    EmptyMessage="... เลือกประเภทบุคลากร ..." Filter="Contains" 
                    OnClientTextChange="onTextChange" Width="200px"                                        
                    onselectedindexchanged="cmbEmployeeType_SelectedIndexChanged">
                </telerik:RadComboBox>
            </td>
            <td >
                <asp:LinkButton ID="btnPopMessage" runat="server" CssClass="LinkButton" >
                    <img style="border:0px;vertical-align:middle;" alt="คลิกที่นี่เพื่อแจ้งเวียน" src="../Images/Buttons/Email.gif" />&nbsp;&nbsp;แจ้งเวียน
                </asp:LinkButton>
            </td>
            </tr>
            <tr>
            <td colspan = "4">
                <asp:Panel ID="Panel10" runat="server" Height="370px" ScrollBars="Auto" Width="980px" Visible="true">
                <table>
                <tr>
                <td>
                    <telerik:RadToolTip runat="server" ID="RadToolTip2" 
                        Width="720px" Height="350px" 
                        TargetControlID="btnPopMessage" ShowEvent="OnClick"
                        IsClientID="false" Animation="Fade" 
                        Position="BottomRight" Skin="Default" 
                        Modal="true" ManualClose="true">
                        <table align="center" >
                        <tr>
                           <td align="right" valign = "top">
                                ข้อความแจ้งเวียน :
                           </td>
                           <td align="center" >
                                <telerik:RadTextBox ID="txtSendActivity" runat="server" Width="700px" Height="300px" TextMode="MultiLine" />
                           </td>
                        </tr>
                        <tr>
                           <td>               
                           </td>
                           <td align="center">
                                <asp:Button ID="btnSendTraining" OnClick="btnSendTraining_Click" runat="server" CssClass="button" Text="ส่งข้อความ" Width="80px" />
                           </td>                                                
                        </tr>
                        </table>
                    </telerik:RadToolTip>  
                </td>
                </tr>
                <tr>
                <td colspan = "4">
                    <telerik:RadGrid ID="RadGrid3" 
                        runat="server" 
                        AllowAutomaticDeletes="True" 
                        AllowFilteringByColumn="True" 
                        AllowMultiRowEdit="True" 
                        AllowMultiRowSelection="True" 
                        AllowPaging="True" 
                        AllowSorting="True" 
                        AutoGenerateColumns="False" 
                        EnableAJAX="True" 
                        EnableAJAXLoadingTemplate="True" 
                        GridLines="None" 
                        OnItemCommand="RadGrid3_ItemCommand" 
                        Skin="Outlook" Width="940px">
                        <mastertableview 
                            allowmulticolumnsorting="True" 
                            cellspacing="-1" 
                            clientdatakeynames="EMP_SEQ"
                            commanditemdisplay="Top" 
                            datakeynames="EMP_SEQ"
                            nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                            <commanditemtemplate>
                                <table width="99%">
                                <tr>
                                    <td align="left">                                        
                                    </td>
                                    <td align="right">
                                        <asp:Button id="btnCircular" Visible = "false"
                                            CommandName="CircularActivituy"                                                                                                                                                                                                                       
                                            runat="server" Width="80px" 
                                            CssClass="button" Text="แจ้งเวียน" 
                                            Height="23px">
                                        </asp:Button>
                                    </td>
                                </tr>
                                </table>
                            </commanditemtemplate>
                            <Columns>
                                <telerik:GridClientSelectColumn 
                                    UniqueName="ClientSelectColumn">
                                    <HeaderStyle Width="30px" HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </telerik:GridClientSelectColumn> 
                                <telerik:GridBoundColumn Visible = "false"
                                    HeaderText="emp_seq" 
                                    DataField="emp_seq"
                                    UniqueName="emp_seq" 
                                    FilterControlWidth="100%" 
                                    AutoPostBackOnFilter="true"
                                    CurrentFilterFunction="Contains" 
                                    ShowFilterIcon="False">
                                    <HeaderStyle HorizontalAlign = "Center" Width="150px" />
                                </telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn 
                                    HeaderText="ชื่อ - นามสกุล" 
                                    DataField="FULL_NAME"
                                    UniqueName="FULL_NAME" 
                                    FilterControlWidth="100%" 
                                    AutoPostBackOnFilter="true"
                                    CurrentFilterFunction="Contains" 
                                    ShowFilterIcon="False">
                                    <HeaderStyle HorizontalAlign = "Center" Width="150px" />
                                </telerik:GridBoundColumn>                              
                                 <telerik:GridBoundColumn 
                                    DataField="POS_NAME"                                    
                                    HeaderText="ตำแหน่ง"  
                                    UniqueName="POS_NAME" 
                                    FilterControlWidth="100%" 
                                    AutoPostBackOnFilter="true"
                                    CurrentFilterFunction="Contains" 
                                    ShowFilterIcon="False">
                                    <HeaderStyle Width="150px" HorizontalAlign = "Center" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn 
                                    DataField="CLASS_NAME"                                    
                                    HeaderText="ระดับ"  
                                    UniqueName="CLASS_NAME" 
                                    FilterControlWidth="100%" 
                                    AutoPostBackOnFilter="true"
                                    CurrentFilterFunction="Contains" 
                                    ShowFilterIcon="False">
                                    <HeaderStyle Width="150px" HorizontalAlign = "Center" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="JOB_SITE_NAME" 
                                   HeaderText="สังกัด" 
                                   ShowFilterIcon="false"
                                   FilterControlWidth="100%"
                                   CurrentFilterFunction="Contains"
                                   AutoPostBackOnFilter="true"
                                   UniqueName="job_site_name">
                                   <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                </telerik:GridBoundColumn>                                
                            </Columns>            
                            <PagerStyle 
                                AlwaysVisible="true" 
                                FirstPageToolTip="กลับหน้าแรก" 
                                LastPageToolTip="ไปหน้าสุดท้าย" 
                                Mode="NumericPages" 
                                NextPagesToolTip="หน้าถัดไป" 
                                NextPageToolTip="หน้าถัดไป" 
                                PrevPagesToolTip="ย้อนกลับ" 
                                PrevPageToolTip="ย้อนกลับ" />
                        </mastertableview>
                        <clientsettings>
                            <selecting allowrowselect="true" />
                            <scrolling allowscroll="true" usestaticheaders="True" />
                        </clientsettings>
                    </telerik:RadGrid> 
                </td>
                </tr>
                <tr>
                <td colspan = "4">
                    <telerik:RadGrid ID="RadGrid4" Visible ="false"
                        runat="server" 
                        AllowAutomaticDeletes="True" 
                        AllowFilteringByColumn="True" 
                        AllowMultiRowEdit="True" 
                        AllowMultiRowSelection="True" 
                        AllowPaging="True" 
                        AllowSorting="True" 
                        AutoGenerateColumns="False" 
                        EnableAJAX="True" 
                        EnableAJAXLoadingTemplate="True" 
                        GridLines="None" 
                        Height="360px" 
                        OnItemCommand="RadGrid4_ItemCommand" 
                        Skin="Outlook" 
                        Width="940px" >
                        <mastertableview 
                            allowmulticolumnsorting="True" 
                            cellspacing="-1" 
                            clientdatakeynames="job_site_seq"
                            commanditemdisplay="Top" 
                            datakeynames="job_site_seq"
                            nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                            <commanditemtemplate>
                                <table width="99%">
                                <tr>
                                    <td align="left">
                                    </td>
                                    <td align="right">
                                        <asp:Button id="btnCircular" Visible = "false"
                                            CommandName="CircularAll"                                                                                                                                                                                                                       
                                            runat="server" Width="80px" 
                                            CssClass="button" Text="แจ้งเวียน" 
                                            Height="23px">
                                        </asp:Button>
                                    </td>
                                </tr>
                                </table>
                            </commanditemtemplate>
                            <Columns>
                                <telerik:GridClientSelectColumn 
                                    UniqueName="ClientSelectColumn">
                                    <HeaderStyle Width="30px" HorizontalAlign="Center" />
                                    <ItemStyle HorizontalAlign="Center" />
                                </telerik:GridClientSelectColumn>                                     
                                <telerik:GridBoundColumn 
                                    DataField="job_site_name"  
                                    HeaderText="หน่วยงานที่ต้องการแจ้งเวียน" 
                                    UniqueName="job_site_name" 
                                    FilterControlWidth="100%" 
                                    AutoPostBackOnFilter="true"
                                    CurrentFilterFunction="Contains" 
                                    ShowFilterIcon="False">
                                    <HeaderStyle HorizontalAlign = "Center" />
                                    <ItemStyle HorizontalAlign="Left"/>
                                </telerik:GridBoundColumn>                               
                            </Columns>            
                            <PagerStyle 
                                AlwaysVisible="true" 
                                FirstPageToolTip="กลับหน้าแรก" 
                                LastPageToolTip="ไปหน้าสุดท้าย" 
                                Mode="NumericPages" 
                                NextPagesToolTip="หน้าถัดไป" 
                                NextPageToolTip="หน้าถัดไป" 
                                PrevPagesToolTip="ย้อนกลับ" 
                                PrevPageToolTip="ย้อนกลับ" />
                        </mastertableview>
                        <clientsettings>
                            <selecting allowrowselect="true" />
                            <scrolling allowscroll="true" usestaticheaders="True" />
                        </clientsettings>
                    </telerik:RadGrid>   
                </td>
                </tr>
                </table>                                      
                </asp:Panel>
            </td>
        </tr>
        </table>
        </div>
        </div>
    </td>
    </tr>
    </table>
    </asp:Panel>
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView1" runat="server">
    <asp:panel ID="Panel6" runat="server" >
    <table width="980px" cellpadding="0" cellspacing="0">
    <tr>
    <td colspan = "3">
        <div class="moduleDivSlim1000x450">
        <div class="moduleDivBottom1000">
        <table width ="950px" align="center">
        <tr align="center">
        <td >
        <asp:Panel ID="PanelGrid2" runat="server" Width="960px" Height="400px" ScrollBars="Auto" >
            <table width = "950px">
            <tr>
            <td align="left" class="tableHeader">
                รายชื่อผู้สมัคร/ผู้มีคุณสมบัติครบ :
                <asp:LinkButton ID="btnAddNewReq" runat="server" onclick="btnAddNewReq_Click" CssClass="LinkButton" >
                    <img style="border:0px;vertical-align:middle;" alt="คลิกเพื่อแสดงรายชื่อผู้มีคุณสมบัติครบ" src="../Images/Buttons/AddRecord.gif" />&nbsp;รายชื่อผู้มีคุณสมบัติครบ
                </asp:LinkButton>
            </td>
            <td>
                
            </td>
            <td align="left" class="tableHeader">
                รายชื่อผู้มีสิทธิ์ :
            </td>
            </tr>
            <tr>
            <td align="center">
                <asp:ListBox ID="lstReq" runat="server" Width="450px" Height="300px" 
                    SelectionMode="Multiple" BackColor="#FFFF99"></asp:ListBox>
            </td>
            <td align="center" style="border-color:Navy;">    
                <br />
                <br />
                <asp:Button ID="btnSelect" CssClass="button" runat="server" Text=">" Width = "30px" OnClick="btnSelect_Cleck"/>
                <br />
                <br />
                <asp:Button ID="btnSelectAll" CssClass="button" runat="server" Text=">>>" Width = "30px" OnClick="btnSelectAll_Cleck" />
                <br />
                <br />
                <asp:Button ID="btnRemove" CssClass="button" runat="server" Text="<" Width = "30px" OnClick="btnRemove_Cleck" />
                <br />
                <br />
                <asp:Button ID="btnRemoveAll" CssClass="button" runat="server" Text="<<<" Width = "30px" OnClick="btnRemoveAll_Cleck" />
            </td>
            <td align="center" >
                <asp:ListBox ID="lstApp" runat="server" 
                    Width="450px" Height="300px" 
                    SelectionMode="Multiple" BackColor="#FFCCFF" 
                    onselectedindexchanged="lstApp_SelectedIndexChanged">
                </asp:ListBox>
            </td>
        </tr>
        <tr>
            <td align = "right">
                <asp:Button id="cmdPopUpper" runat="server" Width="120px" 
                    CssClass="button" Text="แจ้งผู้บังคับบัญชา" onclick="btnMailToUpper_Click">
                </asp:Button>        
                <asp:LinkButton ID="btnMailToUpper" runat="server" CssClass="LinkButton" onclick="btnMailToUpper_Click" >
                    <img style="border:0px;vertical-align:middle;" alt="คลิกเพื่อแจ้งผู้บังคับบัญชา" src="../Images/Buttons/email.gif" />&nbsp;แจ้งผู้บังคับบัญชา
                </asp:LinkButton>                   
            </td>
            <td>
            </td>
            <td align = "right">
                <asp:LinkButton ID="btnMailToGrant" runat="server" CssClass="LinkButton" >
                    <img style="border:0px;vertical-align:middle;" alt="คลิกเพื่อแจ้งผู้มีสิทธิ์" src="../Images/Buttons/email.gif" />&nbsp;แจ้งผู้มีสิทธิ์
                </asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="PanelSearchResult" runat="server" Height="450" Visible="false"                    
                    style="margin:10px; position:absolute; top:10px; left:20px; width: 943px;"  
                    BackImageUrl="../Images/Buttons/bg_popup.gif">
                    <table>
                        <tr>
                            <td colspan = "2">
                            <br />
                            </td>
                        </tr>
                         <tr>
                            <td align = "right">
                                ประเภทบุคลากร :
                            </td>
                            <td align = "left">
                                <telerik:RadComboBox ID="cmbEmployeeTypeToolTip" runat="server" 
                                    AllowCustomText="true" 
                                    CausesValidation="false" 
                                    DataTextField="Name" ZIndex = "8001"
                                    DataValueField="Sequence" 
                                    EmptyMessage="...พิมพ์ที่นี่เพื่อค้นหา..." Filter="Contains"
                                    OnClientTextChange="onTextChange" Width="200px">
                                </telerik:RadComboBox>
                            </td>
                        </tr>
                        <tr>
                            <td align = "right">
                                ที่ไม่ได้เดินทางไปปฏิบัติราชการชั่วคราวในต่างประเทศภายใน :
                            </td>
                            <td align = "left">
                                <telerik:RadComboBox ID="cmbMonth" Runat="server" ZIndex="8001" Width="100px">
                                    <Items>
                                    <telerik:RadComboBoxItem runat="server" Text="..ไม่ระบุ.." Value="0" />
                                    <telerik:RadComboBoxItem runat="server" Text="1 เดือน" Value="1" />
                                    <telerik:RadComboBoxItem runat="server" Text="2 เดือน" Value="2" />
                                    <telerik:RadComboBoxItem runat="server" Text="3 เดือน" Value="3" />
                                    <telerik:RadComboBoxItem runat="server" Text="4 เดือน" Value="4" />
                                    <telerik:RadComboBoxItem runat="server" Text="5 เดือน" Value="5" />
                                    <telerik:RadComboBoxItem runat="server" Text="6 เดือน" Value="6" />
                                    <telerik:RadComboBoxItem runat="server" Text="7 เดือน" Value="7" />
                                    <telerik:RadComboBoxItem runat="server" Text="8 เดือน" Value="8" />
                                    <telerik:RadComboBoxItem runat="server" Text="9 เดือน" Value="9" />
                                    <telerik:RadComboBoxItem runat="server" Text="10 เดือน" Value="10" />
                                    <telerik:RadComboBoxItem runat="server" Text="11 เดือน" Value="11" />
                                    <telerik:RadComboBoxItem runat="server" Text="12 เดือน" Value="12" />
                                    </Items>
                                </telerik:RadComboBox>
                                 นับจากวันที่เดินทางกลับจากราชครั้งก่อน
                            </td>
                            <td align = "left"> 
                            </td>
                        </tr>
                        <tr>
                            <td align = "right">
                             ถึงวันที่เดินทางครั้งใหม่ วันที่ 
                            </td>
                            <td align = "left" Width="100px">
                                <asp:Label ID="lblFilterAppDateStart" runat="server" ForeColor="Blue"></asp:Label>                                                            
                            </td> 
                            <td align = "left" >
                                <asp:Button ID="cmdFilter" runat="server" CssClass="button" Text="ค้นหาข้อมูล" 
                                    Width="80px" onclick="cmdFilter_Click" /> 
                                <asp:Button ID="cmbClosePanel" runat="server" CssClass="button" Text="ปิดหน้านี้" 
                                    Width="80px" onclick="cmbClosePanel_Click" /> 
                            </td>               
                        </tr>
                        <tr>
                            <td colspan ="3">
                                <telerik:RadGrid ID="GridResult" 
                                    runat="server" 
                                    AllowAutomaticDeletes="True" 
                                    AllowFilteringByColumn="True" 
                                    AllowMultiRowEdit="True" 
                                    AllowMultiRowSelection="True" 
                                    AllowPaging="True" 
                                    AllowSorting="True" 
                                    AutoGenerateColumns="False" 
                                    EnableAJAX="True" 
                                    EnableAJAXLoadingTemplate="True" 
                                    GridLines="None" Height="330px"
                                    onitemdatabound="GridResult_ItemDataBound"
                                    Skin="Outlook" Width="850px" onitemcommand="GridResult_ItemCommand">
                                    <mastertableview 
                                        allowmulticolumnsorting="True" 
                                        cellspacing="-1" 
                                        clientdatakeynames="EMP_SEQ"
                                        commanditemdisplay="Top" 
                                        datakeynames="EMP_SEQ"
                                        nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                                        <commanditemtemplate>
                                            <table width="99%">
                                            <tr>
                                                <td align="left">  
                                                    <asp:Button id="btnSelectResult" 
                                                        CommandName="SelectResult"                                                                                                                                                                                                                       
                                                        runat="server" Width="80px" 
                                                        CssClass="button" Text="เลือก" 
                                                        Height="23px">
                                                    </asp:Button>                                      
                                                </td>
                                                <td align="right">
                                                    
                                                </td>
                                            </tr>
                                            </table>
                                        </commanditemtemplate>
                                        <Columns>
                                            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                                                <HeaderStyle Width="30px" HorizontalAlign="Center" />
                                                <ItemStyle HorizontalAlign="Center" />
                                            </telerik:GridClientSelectColumn> 
                                            <telerik:GridBoundColumn Visible = "false"
                                                HeaderText="emp_seq" 
                                                DataField="emp_seq"
                                                UniqueName="emp_seq" 
                                                FilterControlWidth="100%" 
                                                AutoPostBackOnFilter="true"
                                                CurrentFilterFunction="Contains" 
                                                ShowFilterIcon="False">
                                                <HeaderStyle HorizontalAlign = "Center" Width="150px" />
                                            </telerik:GridBoundColumn>  
                                            <telerik:GridBoundColumn 
                                                HeaderText="ชื่อ - นามสกุล" 
                                                DataField="FULL_NAME"
                                                UniqueName="FULL_NAME" 
                                                FilterControlWidth="100%" 
                                                AutoPostBackOnFilter="true"
                                                CurrentFilterFunction="Contains" 
                                                ItemStyle-HorizontalAlign = "Left"
                                                ShowFilterIcon="False">
                                                <HeaderStyle HorizontalAlign = "Center" Width="150px" />
                                            </telerik:GridBoundColumn>                              
                                             <telerik:GridBoundColumn 
                                                DataField="POS_NAME"                                    
                                                HeaderText="ตำแหน่ง"  
                                                UniqueName="POS_NAME" 
                                                FilterControlWidth="100%" 
                                                AutoPostBackOnFilter="true"
                                                CurrentFilterFunction="Contains" 
                                                ShowFilterIcon="False">
                                                <HeaderStyle Width="150px" HorizontalAlign = "Center" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn 
                                                DataField="CLASS_NAME"                                    
                                                HeaderText="ระดับ"  
                                                UniqueName="CLASS_NAME" 
                                                FilterControlWidth="100%" 
                                                AutoPostBackOnFilter="true"
                                                CurrentFilterFunction="Contains" 
                                                ShowFilterIcon="False">
                                                <HeaderStyle Width="150px" HorizontalAlign = "Center" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn DataField="JOB_SITE_NAME" 
                                               HeaderText="สังกัด" 
                                               ShowFilterIcon="false"
                                               FilterControlWidth="100%"
                                               CurrentFilterFunction="Contains"
                                               AutoPostBackOnFilter="true"
                                               UniqueName="job_site_name">
                                               <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                            </telerik:GridBoundColumn>  
                                            <telerik:GridBoundColumn 
                                                 Display="false"
                                                 Visible = "false"     
                                                 DataField="remain_amount" 
                                                 UniqueName = "remain_amount">
                                            </telerik:GridBoundColumn>                               
                                        </Columns>            
                                        <PagerStyle 
                                            AlwaysVisible="true" 
                                            FirstPageToolTip="กลับหน้าแรก" 
                                            LastPageToolTip="ไปหน้าสุดท้าย" 
                                            Mode="NumericPages" 
                                            NextPagesToolTip="หน้าถัดไป" 
                                            NextPageToolTip="หน้าถัดไป" 
                                            PrevPagesToolTip="ย้อนกลับ" 
                                            PrevPageToolTip="ย้อนกลับ" />
                                    </mastertableview>
                                    <clientsettings>
                                        <selecting allowrowselect="true" />
                                        <scrolling allowscroll="true" usestaticheaders="True" />
                                    </clientsettings>
                                </telerik:RadGrid> 
                            </td>
                        </tr>

                        <tr>                                    
                            <td align="right" >
                            </td>
                            <td align="left" colspan ="2">
                                <asp:Button Visible = "false" ID="btnSave2" onclick="btnSave2_Click" runat="server" CssClass="button" Text="บันทึก" Width="80px" />                                   
                                <asp:Button Visible = "false" ID="btnCancel2" OnClick="btnCancel2_Click" runat="server" CssClass="button" Text="ยกเลิก" Width="80px" />
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <telerik:RadToolTip runat="server" ID="RadToolTip1" 
                    Width="720px" Height="350px" 
                    TargetControlID="btnMailToGrant" ShowEvent="OnClick"
                    IsClientID="false" Animation="Fade" 
                    Position="BottomRight" Skin="Default" 
                    Modal="true" ManualClose="true">
                    <table align="center" >
                    <tr>
                       <td align="right" valign = "top">
                            ข้อความ :
                       </td>
                       <td align="center" >
                            <telerik:RadTextBox ID="txtMessageApproved" runat="server" Width="700px" Height="300px" TextMode="MultiLine" />
                       </td>
                    </tr>
                    <tr>
                       <td>               
                       </td>
                       <td align="center">
                            <asp:Button ID="cmdSendApproved" runat="server" CssClass="button" 
                                Text="ส่งข้อความ" Width="80px" onclick="cmdSendApproved_Click" />
                       </td>                                                
                    </tr>
                    </table>
                </telerik:RadToolTip>  
            </td>
        </tr>
        <tr>
            <td>
                <telerik:RadToolTip runat="server" ID="RadToolTip3" 
                    Width="900px" Height="350px" 
                    TargetControlID="cmdPopUpper" ShowEvent="OnClick"
                    IsClientID="false" Animation="Fade" 
                    Position="TopCenter" Skin="Default" 
                    Modal="true" ManualClose="true">
                    <table align="center" >
                    <tr>
                        <td colspan = "3">
                            <telerik:RadGrid ID="grdUpper" runat="server" 
                                AllowAutomaticDeletes="True" 
                                AllowFilteringByColumn="False" 
                                AllowMultiRowEdit="True" 
                                AllowMultiRowSelection="True" 
                                AllowPaging="True" 
                                AllowSorting="True" 
                                AutoGenerateColumns="False" 
                                EnableAJAX="True" 
                                EnableAJAXLoadingTemplate="True" 
                                GridLines="None" Height="300px"
                                Skin="Outlook" Width="850px" >
                                <mastertableview 
                                    allowmulticolumnsorting="True" 
                                    cellspacing="-1" 
                                    clientdatakeynames="UPPER_EMP_SEQ"
                                    commanditemdisplay="Top" 
                                    datakeynames="UPPER_EMP_SEQ"
                                    nomasterrecordstext="&lt; ไม่มีข้อมูล &gt;">
                                    <commanditemtemplate>
                                        <table width="99%">
                                        <tr>
                                            <td align="left">  
                                                รายชื่อผู้บังคับบัญชาที่แจ้งเวียน =>>                                     
                                            </td>
                                            <td align="right">
                                                
                                            </td>
                                        </tr>
                                        </table>
                                    </commanditemtemplate>
                                    <Columns>
                                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">
                                            <HeaderStyle Width="30px" HorizontalAlign="Center" />
                                            <ItemStyle HorizontalAlign="Center" />
                                        </telerik:GridClientSelectColumn> 
                                        <telerik:GridBoundColumn Visible = "false"
                                            HeaderText="UPPER_EMP_SEQ" 
                                            DataField="UPPER_EMP_SEQ"
                                            UniqueName="UPPER_EMP_SEQ" 
                                            FilterControlWidth="100%" 
                                            AutoPostBackOnFilter="true"
                                            CurrentFilterFunction="Contains" 
                                            ShowFilterIcon="False">
                                            <HeaderStyle HorizontalAlign = "Center" Width="150px" />
                                        </telerik:GridBoundColumn>  
                                        <telerik:GridBoundColumn 
                                            HeaderText="ชื่อ - นามสกุล" 
                                            DataField="UPPER_FULL_NAME"
                                            UniqueName="UPPER_FULL_NAME" 
                                            FilterControlWidth="100%" 
                                            AutoPostBackOnFilter="true"
                                            CurrentFilterFunction="Contains" 
                                            ItemStyle-HorizontalAlign = "Left"
                                            ShowFilterIcon="False">
                                            <HeaderStyle HorizontalAlign = "Center" Width="150px" />
                                        </telerik:GridBoundColumn>                              
                                         <telerik:GridBoundColumn 
                                            DataField="EXEC_POS_NAME"                                    
                                            HeaderText="ตำแหน่ง"  
                                            UniqueName="EXEC_POS_NAME" 
                                            FilterControlWidth="100%" 
                                            AutoPostBackOnFilter="true"
                                            CurrentFilterFunction="Contains" 
                                            ShowFilterIcon="False">
                                            <HeaderStyle Width="150px" HorizontalAlign = "Center" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn 
                                            DataField="CLASS_NAME"                                    
                                            HeaderText="ระดับ"  
                                            UniqueName="CLASS_NAME" 
                                            FilterControlWidth="100%" 
                                            AutoPostBackOnFilter="true"
                                            CurrentFilterFunction="Contains" 
                                            ShowFilterIcon="False">
                                            <HeaderStyle Width="150px" HorizontalAlign = "Center" />
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="JOB_SITE_NAME" 
                                           HeaderText="สังกัด" 
                                           ShowFilterIcon="false"
                                           FilterControlWidth="100%"
                                           CurrentFilterFunction="Contains"
                                           AutoPostBackOnFilter="true"
                                           UniqueName="JOB_SITE_NAME">
                                           <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                                        </telerik:GridBoundColumn>                                
                                    </Columns>            
                                    <PagerStyle 
                                        AlwaysVisible="true" 
                                        FirstPageToolTip="กลับหน้าแรก" 
                                        LastPageToolTip="ไปหน้าสุดท้าย" 
                                        Mode="NumericPages" 
                                        NextPagesToolTip="หน้าถัดไป" 
                                        NextPageToolTip="หน้าถัดไป" 
                                        PrevPagesToolTip="ย้อนกลับ" 
                                        PrevPageToolTip="ย้อนกลับ" />
                                </mastertableview>
                                <clientsettings>
                                    <selecting allowrowselect="true" />
                                    <scrolling allowscroll="true" usestaticheaders="True" />
                                </clientsettings>
                            </telerik:RadGrid> 
                        </td>
                    </tr>
                    <tr>
                        <td align="left" >
                            ข้อความ :
                       </td>
                    </tr>
                    <tr>                       
                       <td align="center" >
                            <telerik:RadTextBox ID="txtMessageToUpper" runat="server" Width="850px" Height="200px" TextMode="MultiLine" />
                       </td>
                    </tr>
                    <tr>
                       <td align="center">
                            <asp:Button ID="cmdSendUpper" runat="server" CssClass="button" 
                                Text="ส่งข้อความ" Width="80px" onclick="cmdSendUpper_Click" />
                       </td>                                                
                    </tr>
                    </table>
                </telerik:RadToolTip>  
            </td>
        </tr>
    </table>           
                
        </asp:Panel>

        </td>
        </tr>
        </table>
        </div>
        </div>
    </td>
    </tr>
    </table>
    </asp:panel>
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView2" runat="server" Width="100%">
   <asp:Panel ID="Panel8" runat="server" Visible="false">
        <table>
            <tr>
                <td colspan="3">
                    <div class="moduleDivSlim1000x450">
                        <div class="moduleDivBottom1000">
                            <asp:Panel ID="Panel9" runat="server" style="height: 380px" width="980px">
                                <table width="980px">
                                    <tr>
                                        <td align="left" class="tableHeader">
                                            แจ้งเวียน
                                        </td>
                                    </tr>
                                </table>
                                <table align="center" style="height: 300px; width: 787px;">
                                    <tr>
                                        <td align="right">
                                            ข้อความแจ้งเวียน :
                                        </td>
                                        <td align="center">
                                            <telerik:RadTextBox ID="txtSendQuta" runat="server" Height="200px" 
                                                TextMode="MultiLine" Width="600px" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td align="center">
                                            <asp:Button ID="btnSendQuta" runat="server" CssClass="button" 
                                                OnClick="btnSendQuta_Click"  
                                                Text="แจ้งเวียน" Width="80px" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </asp:Panel>
</telerik:RadPageView>
 </telerik:RadMultiPage>
 </asp:Panel>
</form>
</body>
</html>
